package c.e.a.b.e.c;

import android.database.Cursor;
import b.f.a;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

/* compiled from: com.google.android.gms:play-services-measurement-impl@@18.0.0 */
public final /* synthetic */ class x1 implements d2 {
    public final y1 a;

    public x1(y1 y1Var) {
        this.a = y1Var;
    }

    public final Object q() {
        y1 y1Var = this.a;
        Cursor query = y1Var.a.query(y1Var.b, y1.h, null, null, null);
        if (query == null) {
            return Collections.emptyMap();
        }
        try {
            int count = query.getCount();
            if (count == 0) {
                Object emptyMap = Collections.emptyMap();
                return emptyMap;
            }
            Map aVar;
            if (count <= 256) {
                aVar = new a(count);
            } else {
                aVar = new HashMap(count, 1.0f);
            }
            while (query.moveToNext()) {
                aVar.put(query.getString(0), query.getString(1));
            }
            query.close();
            return aVar;
        } finally {
            query.close();
        }
    }
}
